package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-08
 */
public class SjFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fileId", type = IdType.AUTO)
    private Integer fileId;
    @TableField("fileName")
    private String fileName;
    @TableField("fileCode")
    private String fileCode;
    @TableField("createTime")
    private Date createTime;
    @TableField("lastUpdateTime")
    private Date lastUpdateTime;
    @TableField("versionCode")
    private String versionCode;
    @TableField("updateTimes")
    private Integer updateTimes;
    @TableField("approvalTime")
    private Date approvalTime;
    @TableField("fileApprover")
    private String fileApprover;
    @TableField("fileWriter")
    private String fileWriter;
    @TableField("fileGs")
    private String fileGs;
    @TableField("isApproval")
    private String isApproval;
    @TableField("fileContent")
    private String initialContent;
    @TableField("fileType")
    private String fileType;
    @TableField(exist = false)
    private  String  fileApproverName;
    @TableField(exist = false)
    private  String   fileWriterName;
    @TableField(exist = false)
    private List<Integer>FileUseScope;
    @TableField("isLocked")
    private Integer isLocked;

    public Integer getIsLocked() {
        return isLocked;
    }

    public void setIsLocked(Integer isLocked) {
        this.isLocked = isLocked;
    }

    public List<Integer> getFileUseScope() {
        return FileUseScope;
    }

    public void setFileUseScope(List<Integer> fileUseScope) {
        FileUseScope = fileUseScope;
    }

    public String getFileApproverName() {
        return fileApproverName;
    }

    public void setFileApproverName(String fileApproverName) {
        this.fileApproverName = fileApproverName;
    }

    public String getFileWriterName() {
        return fileWriterName;
    }

    public void setFileWriterName(String fileWriterName) {
        this.fileWriterName = fileWriterName;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileCode() {
        return fileCode;
    }

    public void setFileCode(String fileCode) {
        this.fileCode = fileCode;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public Integer getUpdateTimes() {
        return updateTimes;
    }

    public void setUpdateTimes(Integer updateTimes) {
        this.updateTimes = updateTimes;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApprovalTime() {
        return approvalTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public String getFileApprover() {
        return fileApprover;
    }

    public void setFileApprover(String fileApprover) {
        this.fileApprover = fileApprover;
    }

    public String getFileWriter() {
        return fileWriter;
    }

    public void setFileWriter(String fileWriter) {
        this.fileWriter = fileWriter;
    }

    public String getFileGs() {
        return fileGs;
    }

    public void setFileGs(String fileGs) {
        this.fileGs = fileGs;
    }

    public String getIsApproval() {
        return isApproval;
    }

    public void setIsApproval(String isApproval) {
        this.isApproval = isApproval;
    }

    public String getInitialContent() {
        return initialContent;
    }

    public void setInitialContent(String initialContent) {
        this.initialContent = initialContent;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Override
    public String toString() {
        return "SjFile{" +
                "fileId=" + fileId +
                ", fileName='" + fileName + '\'' +
                ", fileCode='" + fileCode + '\'' +
                ", createTime=" + createTime +
                ", lastUpdateTime=" + lastUpdateTime +
                ", versionCode='" + versionCode + '\'' +
                ", updateTimes=" + updateTimes +
                ", approvalTime=" + approvalTime +
                ", fileApprover='" + fileApprover + '\'' +
                ", fileWriter='" + fileWriter + '\'' +
                ", fileGs='" + fileGs + '\'' +
                ", isApproval='" + isApproval + '\'' +
                ", initialContent='" + initialContent + '\'' +
                ", fileType='" + fileType + '\'' +
                ", fileApproverName='" + fileApproverName + '\'' +
                ", fileWriterName='" + fileWriterName + '\'' +
                ", FileUseScope=" + FileUseScope +
                ", isLocked=" + isLocked +
                '}';
    }
}
